import request from '@/utils/request'

export function getNoticeByPage(currentPage,pageSize) {
  return request({
    url: '/notice/getNoticeByPage',
    method: 'get',
    params: { currentPage,pageSize }
  })
}

export function addNotice(data,token){
  return request({
    url: '/notice/addNotice?token='+token,
    method: 'post',
    data
  })
}

export function updateNotice(data){
  return request({
    url: '/notice/updateNotice',
    method: 'post',
    data
  })
}

export function deleteNotice(id){
  return request({
    url:'/notice/deleteNotice',
    method:'get',
    params:{id}
  })
}
